package pojo;

import java.util.Objects;

public class Course {
    private String department;
    private String courseName;
    private int kexuanNum;
    private String introduce;
    private String startTime;
    private int yixuanNum;
    private String classTime;

    public Course() {
    }

    public Course(String department, String courseName, int kexuanNum, String introduce, String startTime, int yixuanNum, String classTime) {
        this.department = department;
        this.courseName = courseName;
        this.kexuanNum = kexuanNum;
        this.introduce = introduce;
        this.startTime = startTime;
        this.yixuanNum = yixuanNum;
        this.classTime = classTime;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getKexuanNum() {
        return kexuanNum;
    }

    public void setKexuanNum(int kexuanNum) {
        this.kexuanNum = kexuanNum;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public int getYixuanNum() {
        return yixuanNum;
    }

    public void setYixuanNum(int yixuanNum) {
        this.yixuanNum = yixuanNum;
    }

    public String getClassTime() {
        return classTime;
    }

    public void setClassTime(String classTime) {
        this.classTime = classTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Course course = (Course) o;
        return kexuanNum == course.kexuanNum && yixuanNum == course.yixuanNum && Objects.equals(department, course.department) && Objects.equals(courseName, course.courseName) && Objects.equals(introduce, course.introduce) && Objects.equals(startTime, course.startTime) && Objects.equals(classTime, course.classTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(department, courseName, kexuanNum, introduce, startTime, yixuanNum, classTime);
    }

    @Override
    public String toString() {
        return "Course{" +
                "department='" + department + '\'' +
                ", courseName='" + courseName + '\'' +
                ", kexuanNum=" + kexuanNum +
                ", introduce='" + introduce + '\'' +
                ", startTime='" + startTime + '\'' +
                ", yixuanNum=" + yixuanNum +
                ", classTime='" + classTime + '\'' +
                '}';
    }
}
